home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-12-04 | 6.4 KB | 214 lines | [TEXT/MPS ] |
- #ifndef __APPLEEVENTS__
- #include <AppleEvents.h>
- #endif
-
- #ifndef __APPLETALK__
- #include <AppleTalk.h>
- #endif
-
- #ifndef __LISTS__
- #include <Lists.h>
- #endif
-
- #ifndef __MENUS__
- #include <Menus.h>
- #endif
-
- #ifndef __STANDARDFILE__
- #include <StandardFile.h>
- #endif
-
-
- /************** AEConnect.c **************/
-
- void InitConnectAppleEvents(void);
- pascal OSErr DoAEAnswer(AppleEvent *message, AppleEvent *reply, long refcon);
- OSErr SendConnect(FileRecHndl frHndl);
- pascal OSErr ReceiveConnect(AppleEvent *message, AppleEvent *reply, long refcon);
- pascal OSErr ReceiveConnectReply(AppleEvent *message, AppleEvent *reply);
- WindowPtr GetAEWindow(long windID_0, long windID_1);
- pascal Boolean AEPortFilter(LocationNamePtr locationName, PortInfoPtr thePortInfo);
-
-
-
- /************** AECustom.c **************/
-
- void InitCustomAppleEvents(void);
- OSErr SendMessage(FileRecHndl frHndl, short messageType);
- pascal OSErr ReceiveMessage(AppleEvent *message, AppleEvent *reply, long refcon);
-
-
-
- /************** AERequired.c **************/
-
- void InitRequiredAppleEvents(void);
- pascal OSErr DoAEOpenApplication(AppleEvent *message, AppleEvent *reply, long refcon);
- pascal OSErr DoAEOpenDocuments(AppleEvent *message, AppleEvent *reply, long refcon);
- pascal OSErr DoAEPrintDocuments(AppleEvent *message, AppleEvent *reply, long refcon);
- pascal OSErr DoAEQuitApplication(AppleEvent *message, AppleEvent *reply, long refcon);
- OSErr OpenDocEventHandler(AppleEvent *message, AppleEvent *reply, short mode);
-
-
-
- /************** AEUtils.c **************/
-
- void DoHighLevelEvent(EventRecord *event);
- OSErr GetTargetInfo(AEAddressDesc targetDesc, StringPtr zone, StringPtr machine, StringPtr application);
- OSErr MakeTarget(AEAddressDesc *target, Boolean sendDirect, short replyMode, Str255 prompt, Str255 applListLabel, PPCFilterProcPtr portFilter, char *theLocNBPType);
- Boolean MissedAnyParameters(AppleEvent *message);
-
-
-
- /************** AppleTalk.c **************/
-
- OSErr ATInit(void);
- OSErr DoBuildZoneList(ListHandle listHndl);
- OSErr DoSelectMyZone(ListHandle listHndl);
- OSErr AddPPCNBPAlias(NamesTableEntry *theNTE, Str32 newNBPType, EntityName *newEntity);
- OSErr RemoveNBPAlias(EntityPtr theEntity);
-
-
-
- /************** DoCursor.c **************/
-
- void DoCursor(void);
- void DoSetCursor(Cursor *cursor);
-
-
-
- /************** DoEvent.c **************/
-
- void DoEvent(EventRecord *event);
- void DoActivate(WindowPtr window, Boolean becomingActive);
- void DoUpdate(WindowPtr window);
-
-
-
- /************** EventLoop.c **************/
-
- void EventLoop(void);
-
-
-
- /************** File.c **************/
-
- OSErr AppDisposeDocument(FileRecHndl frHndl);
- OSErr AppNewDocument(FileRecHndl *returnHndl, OSType sftype);
- OSErr AppOpenDocument(FileRecHndl *result, FSSpecPtr fileToOpen, char permission);
- OSErr AppSaveDocument(FileRecHndl frHndl, WindowPtr window, short saveMode);
- void ConvertOldToNewSFReply(SFReply *oldReply, StandardFileReply *newReply);
- OSErr Create_OpenFile(FSSpec *file, short *refNum);
- Boolean DisplayGetFile(StandardFileReply *reply);
- Boolean DisplayPutFile(StandardFileReply *reply);
- void IncNewFileNum(Boolean flag);
-
-
-
- /************** File2.c **************/
-
- void AppFreeDocument(FileRecHndl frHndl);
- OSErr AppInitDocument(FileRecHndl frHndl);
- OSErr AppReadDocument(FileRecHndl frHndl);
- OSErr AppWriteDocument(FileRecHndl frHndl);
- OSErr AppDuplicateDocument(FileRecHndl oldFrHndl, FileRecHndl *newFrHndl);
-
-
-
- /************** Help.c **************/
-
- void DynamicBalloonHelp(void);
-
-
-
- /************** IdleTasks.c **************/
-
- void DoIdleTasks(EventRecord *event);
- void NotifyCancel(void);
- void NotifyUser(void);
-
-
-
- /************** Init.c **************/
-
- void Initialize(void);
- void StartDocuments(void);
-
-
- /************** Menu.c **************/
-
- void AdjustMenus(void);
- void EnableOrDisableItem(MenuHandle menu, short item, Boolean enable);
- void DoMenuCommand(long menuResult);
-
-
-
- /************** Print.c **************/
-
- OSErr AppPrintDocument(FileRecHndl frHndl, Boolean jobDlg, Boolean firstJob);
- OSErr PresentStyleDialog(FileRecHndl frHndl);
-
-
-
- /************** Start.c **************/
-
- void main(void);
-
-
-
- /************** Utils.c **************/
-
- void appendi2cstr(char *cstr, short i);
- short appendi2pstr(char *pstr, short i);
- short i2cstr(char *cstr, short i);
- void i2pstr(char *pstr, short i);
- void pstrcat(char *d, char *s);
- void pstrcpy(char *d, char *s);
- short GetHexByte(char *cptr);
- pascal Boolean alertFilter(DialogPtr dlg, EventRecord *event, short *item);
- pascal Boolean keyEquivFilter(DialogPtr dlg, EventRecord *event, short *item);
- void OffsetControl(ControlHandle ctl, short dx, short dy);
- void DoDrawGrowIcon(WindowPtr window, Boolean horLine, Boolean verLine);
- void DoDrawControls(WindowPtr window, Boolean scrollBarsOnly);
- void DoDraw1Control(ControlHandle ctl, Boolean scrollBarsOnly);
-
-
-
- /************** Window.c **************/
-
- OSErr DoNewWindow(FileRecHndl frHndl, WindowPtr *retWindow, WindowPtr behind, short attributes);
- void NewWindowTitle(WindowPtr window);
- Boolean GetWindowDirty(WindowPtr window);
- void SetWindowDirty(WindowPtr window);
- Boolean DisposeAllWindows(void);
- Boolean DisposeOneWindow(WindowPtr window, short saveMode);
- WindowPtr SetFilePort(FileRecHndl frHndl);
- void DoResizeWindow(WindowPtr window, short oldh, short oldv);
- void DoDrawFrame(WindowPtr window);
- RgnHandle DoCalcFrameRgn(WindowPtr window);
- void DoUpdateSeparate(WindowPtr window, RgnHandle *contRgn, RgnHandle *frameRgn);
- void BeginContent(WindowPtr window);
- void EndContent(WindowPtr window);
- void AdjustScrollBars(WindowPtr window);
- void GetContentOrigin(WindowPtr window, Point *contOrg);
- void SetContentOrigin(WindowPtr window, short newh, short newv);
- void GetContentRect(WindowPtr window, Rect *contRct);
- void SetDocSize(FileRecHndl frHndl, short hSize, short vSize);
- void DoImageDocument(FileRecHndl frHndl);
- void DoContentClick(WindowPtr window, EventRecord *event);
- void DoContentKey(WindowPtr window, EventRecord *event);
-
-
-
- /************** Window2.c **************/
-
- OSErr InitContent(FileRecHndl frHndl, WindowPtr window);
- void ImageDocument(FileRecHndl frHndl);
- void ResizeContent(WindowPtr window, short oldh, short oldv);
- void DrawFrame(FileRecHndl frHndl, WindowPtr window);
- void CalcFrameRgn(FileRecHndl frHndl, WindowPtr window, RgnHandle rgn);
- void ContentClick(WindowPtr window, EventRecord *event);
- void ContentKey(WindowPtr window, EventRecord *event);
-
-
-
-